import { ElMessage } from "element-plus";
const tologinState = function () {
  return new Promise((resolve, reject) => {
    if (su.cook.getcookie("token") && su.cook.getcookie("token") != "") {
      resolve(true);
    } else {
      ElMessage.warning("请登录!");
    }
  });
};
export default tologinState;
